<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${path}/pages/">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生信息</title>
</head>
<body>
	<center>
		<h1>学生信息</h1><hr>
		<form method="post" action="../action/student/save" enctype="multipart/form-data">
			<input type="hidden" name="id" value="${student.id}">
			<table>
				<tr>
					<td>姓名：</td>
					<td><input type="text" name="name" value="${student.name}"></td>
				</tr>
				<tr>
					<td>学号：</td>
					<td><input type="text" name="sno" value="${student.sno}"></td>
				</tr>
				<tr>
					<td>班级：</td>
					<td>
						<select name="clazzId">							
							<c:forEach var="c" items="${clazzList}">
								<option value="${c.id}" <c:if test="${student.clazzId==c.id}">selected</c:if>>${c.name}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td>头像：</td>
					<td><input type="file" name="myfile"></td>
				</tr>
				<tr align="center">
					<td colspan="2">
						<input type="submit" value="提交">
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</form>
	</center>
</body>
</html>
